$(document).ready(function(){
    $('input:button, input:submit , a.button ').button();
    $('#uploadPick').click(function openDialog(){
        $.post(urlUploadImage, {}, function(data){
            $('#uploadImageDialog').html(data);
        });
        $('#uploadImageDialog').dialog('open');
    });
    $('#uploadImageDialog').dialog({
        autoOpen: false,
        modal: true,
        width: 700
        });
});